package org.anarcoding.twitterbot.tests;

import org.anarcoding.twitterbot.model.AnarcoTwitterBotConf;
import org.anarcoding.twitterbot.model.AnarcoTwitterException;
import org.anarcoding.twitterbot.services.IAnarcoTwitterServices;
import org.anarcoding.twitterbot.services.IAnarcoTwitterServicesImplBuilder;

@SuppressWarnings( "unused" )
public class Test3 {
	public static void main( String [] args ) throws AnarcoTwitterException {

		String consumerKey = "9OuMaOQTO0tBPb4swM5evw";
		String consumerSecret = "yiLZil16gHr6L2eXhwcM86vqt08OJ9LjvbgkMnSasg";
		String twitterToken = "203574707-aDmhkZmTp8UKCgoZ8vgxxwYQA4B9QSVNSO3w2N7h";
		String twitterTokenSecret = "fUaFVvchHegoWbL5U8aJkx3AOayVgH4blRlB1FICCM";

		AnarcoTwitterBotConf conf = new AnarcoTwitterBotConf();
		conf.setConsumerKey( consumerKey );
		conf.setConsumerSecret( consumerSecret );
		conf.setTwitterToken( twitterToken );
		conf.setTwitterTokenSecret( twitterTokenSecret );

		final IAnarcoTwitterServices twitter1 = IAnarcoTwitterServicesImplBuilder.build( conf );

		// System.out.println( "Existe???? " + twitter1.isRegisteredAlias(
		// "ALIAS" ) );
		// System.out.println( "Existe???? " + twitter1.isRegisteredAlias( "_" )
		// );
		// conf.setAlias( "_" );
		// System.out.println( "Actualiza: " +
		// twitter1.updateAnarcoTwitterBotConfPorAlias( conf ) );
	}
}